<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>定位</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        .box {
            position: relative;
            margin: 100px auto;
            width: 574px;
            height: 400px;
            background-color: pink;
        }

        span {
            position: absolute;
            top: 0;
            right: 0;
            display: block;
            width: 100px;
            height: 50px;
            background-color: rgba(0, 0, 0, 0.42);
            color: #fff;
            font-size: 16px;
            line-height: 50px;
            text-align: center;
        }
    </style>
</head>

<body>
    <div class="box">
        <img src="./轮播图完整效果.png" alt="">
        <span>展会活动</span>
        <h2>2023展览大会</h2>
    </div>


</body>

</html>